package com.liuyi.netty.im.lychat.modular.service.impl;

import com.liuyi.netty.im.lychat.modular.caches.UserCache;
import com.liuyi.netty.im.lychat.modular.entity.User;
import com.liuyi.netty.im.lychat.modular.mapper.UserMapper;
import com.liuyi.netty.im.lychat.modular.service.IUserService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * <p>
 * 用户表 服务实现类
 * </p>
 *
 * @author mybatis-plus
 * @since 2021-12-29
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements IUserService {

    @Resource
    private UserCache userCache;

    @Override
    public UserCache cache() {
        return this.userCache;
    }
}
